import numpy as np
from matplotlib import pyplot as plt

x = np.linspace(-10, 10, 10000)
fig = plt.figure()

# y=x^3
f1 = fig.add_subplot(2, 2, 1)
f1.plot(x, x ** 3, 'r')
f1.text(0, 800, "y=$x^3$", fontsize=10, color='black', ha="center")

# y=x^2
f2 = fig.add_subplot(2, 2, 2)
f2.plot(x, x ** 2, 'b')
f2.text(0, 90, "y=$x^2$", fontsize=10, color='black', ha="center")

# y=|x|
f3 = fig.add_subplot(2, 2, 3)
f3.plot(x, np.absolute(x), 'g')
f3.text(0, 9, "y=$x^2$", fontsize=10, color='black', ha="center")

fig.show()
